/**
 * 表格配置
 * 角色管理 tenant-role
 */
export default {
  'tenant-role': [
    {
      prop: 'roleName',
      name: '角色名称',
      minWidth: 110
    },
    {
      prop: 'roleCode',
      name: '角色编码',
      minWidth: 110
    },
    {
      prop: 'remark',
      name: '备注',
      minWidth: 120
    },
    {
      name: '操作',
      width: 200,
      fixed: 'right',
      thStyle: { 'text-align': 'left' },
      operateList: [
        {
          type: 'btnText',
          label: '编辑',
          id: 'rule-manage-edit',
          authId: 'grass-core:tenantRole:update',
          config: { type: 'text' }
        },
        {
          type: 'btnText',
          label: '删除',
          id: 'tenant-role-delete',
          authId: 'grass-core:tenantRole:deleteById',
          isMore: true,
          config: { type: 'text' },
          style: { color: '#f74a5c' },
          disabledRules: {
            ruleList: [{ prop: 'roleCode', value: 'ADMIN' }]
          }
        },
        {
          type: 'btnText',
          label: '查看所属租户',
          isMore: true,
          id: 'tenant-role-user-look',
          authId: 'grass-core:tenantRole:search',
          config: { type: 'text' }
        },
        {
          type: 'btnText',
          label: '编辑所属租户',
          isMore: true,
          id: 'tenant-role-user-look-edit',
          authId: 'grass-core:tenantRole:update',
          config: { type: 'text' }
        }
      ]
    }
  ]
}
